package com.ponhu.ea2.query;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ponhu.ea2.common.basic.model.BaseCriteria;
import com.ponhu.ea2.enums.MaterialSourceEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author luyu
 * @create 2021-10-18 13:42
 */
@Data
@Accessors(chain = true)
@ApiModel("物料列表查询入参")
public class MaterialInfoQuery extends BaseCriteria implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物料编码")
    private String materialCode;

    @ApiModelProperty(value = "物料编码集合")
    private List<String> materialCodes;

    @ApiModelProperty(value = "物料名称")
    private String materialName;

    @ApiModelProperty(value = "适用人群")
    private String applyCrowd;

    @ApiModelProperty(value = "一级分类id")
    private String firstCategoryId;

    @ApiModelProperty(value = "二级分类id")
    private String secondCategoryId;

    @ApiModelProperty(value = "三级分类id")
    private String thirdCategoryId;

    @ApiModelProperty(value = "品牌ID")
    private String brandId;

    @ApiModelProperty(value = "系列ID")
    private String seriesId;

    @ApiModelProperty(value = "系列名称")
    private String seriesName;

    @ApiModelProperty(value = "型号ID")
    private String modelId;

    @ApiModelProperty(value = "型号名称")
    private String modelName;

    @ApiModelProperty(value = "数据类型")
    private Integer dataType = 1;

    @JsonIgnore
    @ApiModelProperty(value = "数据来源")
    private Integer materialSource = MaterialSourceEnum.CLOUD_TRADE.getCode();

}
